﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BUGCOME.Model.File
{
    /// <summary>
    /// 按次收费文件配置表
    /// </summary>
    [Table("filePayPerDownload")]
    [Tenant("5")]
    public class FilePayPerDownload 
    {
        /// <summary>
        /// 文件ID（关联fileBase.Id）
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public long FileId { get; set; }
        /// <summary>
        /// 单次下载价格（元）
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 折扣率
        /// </summary>
        public decimal Discount { get; set; } = 1.00m;

        /// <summary>
        /// 销量
        /// </summary>
        public int SalesCount { get; set; } = 0;

    }
}
